CXX=mpiCC
LD=mpiCC
MV=mv
RM=rm -f
CFLAGS=


all: par-mhr

#Graph, Solver, State, Stack, main.cpp

main.o: main.cpp Stack.h Graph.h Solver.h State.h settings.h
	$(CXX) $(CFLAGS) -c -o main.o main.cpp

Stack.o: Stack.cpp Stack.h
	$(CXX) $(CFLAGS) -c -o Stack.o Stack.cpp

Graph.o: Graph.cpp Graph.h
	$(CXX) $(CFLAGS) -c -o Graph.o Graph.cpp

Solver.o: Solver.cpp Solver.h Graph.h State.h
	$(CXX) $(CFLAGS) -c -o Solver.o Solver.cpp


State.o: State.cpp State.h
	$(CXX) $(CFLAGS) -c -o State.o State.cpp

par-mhr: main.o Stack.o Graph.o Solver.o State.o
	$(LD) -o par-mhr main.o Stack.o Graph.o Solver.o State.o
#	$(MV) *.o build
#	$(MV) par-mhr dist

clean:
#	$(RM) build/*
#	$(RM) dist/*
	$(RM) *.o
	$(RM) par-mhr

